﻿<!--
Copyright 2006-2008 TIBCO Software Inc.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="content-type">
  <title>Test sample localization</title>
</head>
<body>
<table border="1">
<caption>Locolization test for Datepicker, TimePicker, and Select/Combo box form control and as part of Matrix mask </caption>
<caption></caption>
<tbody>
    <tr>
      <td rowspan="1" colspan="3">GUI components localization<br>
      </td>
    </tr>
      <!--tr>
        <td>setInterval</td>
        <td>100</td>
        <td>&nbsp;</td>
      </tr-->
   <tr>
      <td>include</td>
      <td>testSetup.html</td>
      <td>&nbsp;</td>
    </tr>


    <tr>
      <td>jsxopen</td>
      <td>${GIPATH}/shell.html?jsxapppath=${SAMPLESPATH}/sample-localization</td>
      <td>&nbsp;</td>
    </tr>
     <tr>
       <td>waitForElementPresent</td>
       <td>JsxMenuName=mnuLocaleSelectMenu</td>
       <td>5000</td>
     </tr>    
    <tr>
      <td>resizeJsxLayout</td>
      <td>lytMainLayout</td>
      <td>0,*</td>
    </tr>
    <tr>
      <td>unsubscribeJsxResize</td>
      <td>// disable resize event to work around IE bug, which affects all Heaveyweight drop down windows.</td>
      <td>&nbsp;</td>
    </tr>
	<tr>
        <td>clickJsxMenu</td>
        <td>JsxMenuName=mnuLocaleSelectMenu</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>waitForJsxMenuWindowPresent</td>
        <td>1</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3">!-- Test French Locale-</td>
      </tr>
      <tr>
        <td>clickJsxMenuItem</td>
        <td>JsxMenuItemId=mnuLocaleSelectMenu,fr</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>assertElementPresent</td>
        <td>JsxStackText=*sans arbres de kaki*</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>assertJsxText</td>
        <td>select</td>
        <td>- Sélectionnez -</td>
      </tr>
      <tr>
        <td>assertJsxValue</td>
        <td>timePicker</td>
        <td>00:00</td>
      </tr>
      <tr>
        <td>assertJsxValue</td>
        <td>datePicker</td>
        <td>17 avr 2008</td>
      </tr>
      
      <tr>
        <td colspan="3">!-- Test Chinese locale--</td>
      </tr>
      <tr>
        <td>clickJsxMenu</td>
        <td>JsxMenuName=mnuLocaleSelectMenu</td>
        <td>JsxMenuItemId=mnuLocaleSelectMenu,zh_TW</td>
      </tr>
      <tr>
        <td>waitForElementPresent</td>
        <td>JsxStackText=*沒有一家*</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>assertJsxText</td>
        <td>select</td>
        <td>- 選擇 -</td>
      </tr>      
      <tr>
        <td>assertJsxValue</td>
        <td>timePicker</td>
        <td>12时00 AM</td>
      </tr>
      <tr>
        <td>assertJsxValue</td>
        <td>datePicker</td>
        <td>2008-4-17</td>
      </tr>
      <tr>
        <td colspan="3">!-- Test default locale--</td>
      </tr>
      <tr>
        <td>clickJsxMenu</td>
        <td>JsxMenuName=mnuLocaleSelectMenu</td>
        <td>JsxMenuItemText=mnuLocaleSelectMenu,*Default*</td>
      </tr>
      <tr>
        <td>waitForElementPresent</td>
        <td>JsxStackText=*without*</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>assertJsxText</td>
        <td>select</td>
        <td>- Select -</td>
      </tr>
      <tr>
        <td>assertJsxValue</td>
        <td>timePicker</td>
        <td>12:00 AM</td>
      </tr>
      <tr>
        <td>assertJsxValue</td>
        <td>datePicker</td>
        <td>Apr 17, 2008</td>
      </tr>
      
    <!-- assert list row length = +1 -->
    <!--tr>
      <td>jsxopen</td>
      <td>about:blank</td>
      <td>&nbsp;</td>
    </tr-->
  </tbody>

</table>
</body>
</html>
